package com.example.app.Entity;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface HealthDataDao {
    @Insert
    void insert(HealthData healthData);
    
    @Query("SELECT * FROM health_data WHERE user_id = :userId")
    List<HealthData> getHealthDataByUserId(Long userId);
}